//
//  MoreTableViewCell.swift
//  MoodDiary
//
//  Created by MoodDiary on 2020/11/24.
//

import UIKit

protocol MoreTableViewCellDelegate: class {
    func switchStatusIsOn(status: Bool, currentIndex: Int)
}

class MoreTableViewCell: UITableViewCell {

    @IBOutlet weak var imgV: UIImageView!
    @IBOutlet weak var statusSwitch: UISwitch!
    @IBOutlet weak var label0: UILabel!
    @IBOutlet weak var label1: UILabel!
    @IBOutlet weak var arrowImageView: UIImageView!
    @IBOutlet weak var conLable1: NSLayoutConstraint!
    
    var currentIndex: Int?
    
    weak var delegate: MoreTableViewCellDelegate?
    
    override func awakeFromNib() {
        super.awakeFromNib()
        
    }

    @IBAction func swatchAction() {
        delegate?.switchStatusIsOn(status: statusSwitch.isOn, currentIndex: currentIndex ?? -1)
    }
    
}
